6 Advanced Dynamic Programming 6.1 Saving Space: Divide and Conquer Released under a Creative Commons Attribution-noncommercial-sharealike 3.0 License

نویسنده

  • Oscar Wilde
چکیده

Dynamic programming is a powerful technique for efficiently solving recursive problems, but it’s hardly the end of the story. In many cases, once we have a basic dynamic programming algorithm in place, we can make further improvements to bring down the running time or the space usage. We saw one example in the Fibonacci number algorithm. Buried inside the naïve iterative Fibonacci algorithm is a recursive problem—computing a power of a matrix—that can be solved more efficiently by dynamic programming techniques—in this case, repeated squaring.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

8 Depth-first Search Released under a Creative Commons Attribution-noncommercial-sharealike 3.0 License

We can make this algorithm slightly faster (in practice) by checking whether a node is marked before we recursively explore it. This modification ensures that we call DFS(v) only once for each vertex v. We can further modify the algorithm to define parent pointers and other useful information about the vertices. This additional information is computed by two black-box subroutines PREVISIT and P...

متن کامل

Lecture 8: Matroids [fa'13] Released under a Creative Commons Attribution-noncommercial-sharealike 3.0 License

Many problems that can be correctly solved by greedy algorithms can be described in terms of an abstract combinatorial object called a matroid. Matroids were first described in 1935 by the mathematician Hassler Whitney as a combinatorial generalization of linear independence of vectors—‘matroid’ means ‘something sort of like a matrix’. A matroid M is a finite collection of finite sets that sati...

متن کامل

Knowledge, Attitudes, and Practices of Emergency Contraception among Female Undergraduate Health Science Students in Kenya

How to Cite this Article: Isaiah G. Knowledge, attitudes, and practices of emergency contraception among female undergraduate health science students in Kenya. Ann Med Health Sci Res. 2017; 7: 206-210 This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License, which allows others to remix, tweak, and build upon the work no...

متن کامل

The Effect of Zinc Supplementation on Hair Element Levels in Elite Female Athletes

How to Cite this Article: Eskici G. The Effect of Zinc Supplementation on Hair Element Levels in Elite Female Athletes. Ann Med Health Sci Res. 2017; 7: 150-156 This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License, which allows others to remix, tweak, and build upon the work non-commercially, as long as the author is...

متن کامل

Severe Adenovirus Pneumonitis in an Immunocompetent Patient

How to Cite this Article: Wisit Cheungpasitporn. Severe Adenovirus Pneumonitis in an Immunocompetent Patient. Ann Med Health Sci Res. 2017; 7: 222-223 This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License, which allows others to remix, tweak, and build upon the work non-commercially, as long as the author is credited ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013